#ifndef _BOARD_H
#define _BOARD_H
#include <msp430.h>
#include <stdbool.h>
#include <stdint.h>
#define CPU_F ((double)16000000)
#define delay_ms(x) __delay_cycles((long)(CPU_F*(double)x/1000.0))  //延时mS
#define delay_us(x) __delay_cycles((long)(CPU_F*(double)x/1000000.0))  //延时uS
void initUART_0();
void initUART_1();
void initClockTo16MHz();
uint16_t setVCoreUp(uint8_t level);
uint8_t increaseVCoreToLevel2();
void initGPIO();
void initI2C(uint8_t dev_addr);

#endif
